package org.cmd.args;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * 命令行指令解析结果
 *
 */
public abstract class ArgsOptions implements IArgsOptions {

	protected Map<String, String> paraMap = new HashMap<String, String>();
	protected boolean wrong;
	
	@Override
	public void setComandPara(String comand, String para) {
		paraMap.put(comand, para);
	}

	@Override
	public String getValue(String comand) {
		return paraMap.get(comand);
	}

	@Override
	public boolean wrong() {
		return wrong;
	}

	@Override
	public void setWrong() {
		wrong = true;
	}

}
